<?php
/**
* user.php
*
* Create on 2016-11-18
* Create by TT
*/
namespace haibao\cms\model\data\nh;

class User extends \haibao\cms\model\data\Base {
	
	const STATUS_TYPE_OPEN = 1;
	const STATUS_TYPE_CLOSE = 0;
	
	//上传图片得到卡片
	const PHOTO_CARD_OK = 1;
	//上传图片未得到卡片
	const PHOTO_CARD_NO = 0;
	
	public $Name;
	public $Mobile;
	public $OpenId;
	public $PhotoUrl;
	public $IsWin;
	public $Status;
	public $CreateTime;
	public $PhotoCard;
	
	
	public function __construct() {
		parent::__construct ();
		$this->stringField ( 'Name', 'Name' );
		$this->stringField ( 'Mobile', 'Mobile' );
		$this->stringField ( 'OpenId', 'OpenId' );
		$this->stringField ( 'PhotoUrl', 'PhotoUrl' );
		$this->intField ( 'IsWin', 'IsWin' );
		$this->intField ( 'Status', 'Status' );
		$this->dateField('CreateTime', 'CreateTime');
		$this->intField ( 'PhotoCard', 'PhotoCard' );
	
		$this->setTableName ( 'NH_User' );
	}
}